﻿using System.ComponentModel;
using System.Drawing;

namespace ElectronicCommerce.Framework.Web.UI.GeneratedImage.ImageTransform
{

    /// <summary>
    /// An abstract ImageTransform class
    /// </summary>
    public abstract class ImageTransform
    {
        /// <summary>
        /// 执行图片转换(缩略图的生成、水印的添加)
        /// </summary>
        /// <param name="image"></param>
        /// <returns></returns>
        public abstract Image ProcessImage(Image image);

        // REVIEW: should this property be abstract?
        [Browsable(false)]
        public virtual string UniqueString
        {
            get
            {
                return GetType().FullName;
            }
        }
    }
}
